package com.gis3c.online.entry;

/**
 * Created by hukekuan on 2018/3/26.
 */
public class StationStatus {
    private String stationId;
    private String ecodes;

    public Double GetStatusCode(){
        Double statusCode = 0.0;
        if("30".equals(ecodes)){
            statusCode = -1.0; //-1表示站点状态停产
        }else if(ecodes != null
                && !"".equals(ecodes)
                && !"0".equals(ecodes)
                && !"31".equals(ecodes)
                && !"32".equals(ecodes)){
            statusCode = -2.0;// -1表示站点状态故障
        }
        return statusCode;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getEcodes() {
        return ecodes;
    }

    public void setEcodes(String ecodes) {
        this.ecodes = ecodes;
    }
}
